
//检验项目

import request from '@/utils/request'

// 查询检验项目列表
export function listProject(query) {
  return request({
    url: '/ny-iqc/project/list',
    method: 'get',
    params: query
  })
}

// 模糊查询检验项目
export function listAllProject(query) {
  return request({
    url: '/ny-iqc/project/listAll',
    method: 'get',
    params: query
  })
}



// 查询检验项目详细
export function getProject(id) {
  return request({
    url: '/ny-iqc/project/' + id,
    method: 'get'
  })
}

// 新增检验项目
export function addProject(data) {
  return request({
    url: '/ny-iqc/project',
    method: 'post',
    data: data
  })
}

// 修改检验项目
export function updateProject(data) {
  return request({
    url: '/ny-iqc/project',
    method: 'put',
    data: data
  })
}

// 删除检验项目
export function delProject(id) {
  return request({
    url: '/ny-iqc/project/' + id,
    method: 'delete'
  })
}

// 导出检验项目
export function exportProject(query) {
  return request({
    url: '/ny-iqc/project/export',
    method: 'post',
    params: query
  })
}
